import { request } from "@/configs/http"
import { LoginParams, LoginResponse } from "./index.type";

export const Apis = {
  Login: '/login/',
}

/** 登录接口 */
export function login(data: LoginParams) {
  return request<LoginResponse>({
    url: Apis.Login,
    method: 'POST',
    data
  })
}